<!-- Student_FreeCourseInfoNew.html -->
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
		<title>自由课程介绍</title>
		<link rel="stylesheet" type="text/css" href="../../css/api.css" />
		<link rel="stylesheet" type="text/css" href="../../css/weui.min.css" />
		<link rel="stylesheet" href="../../css/base.css"/>
		<link rel="stylesheet" href="../../css/CFNetPP_Base.css">
		<style type="text/css" media="screen">
			.feeling {
				padding: 10px;
				margin-top: 10px;
			}
			.feeling-text {
				word-break: break-all;
			}
			
		</style>
	</head>
	<body>
		<div class="feeling">
			<p class="title base_title_font">
				课程介绍
			</p>
			<div class="feeling-text base_content_font">
				<p id="course_info">
					暂无介绍
				</p>
			</div>
		</div>
	</body>
	<script type="text/javascript" src="../../script/api.js"></script>
	<script type="text/javascript" src="../../script/jquery.min.js"></script>
	<script type="text/javascript" src="../../script/MD5.js"></script>
	<script type="text/javascript" src="../../script/requestTool.js"></script>
	<script type="text/javascript">
		var course_param;
		apiready = function() {
			course_param = api.pageParam;
			setupCourseInfo();
		}
		function setupCourseInfo() {
			api.showProgress({
				style : 'default',
				animationType : 'fade',
				title : '加载中',
				text : '请稍候...',
				modal : false
			});
			var params = {
				cid : course_param.courseid
			};
//			var rUrl = "http://base.cfnet.org.cn/course/course_normal/getCourseInfo";
			cfnetppPOST(url_getCourseInfo, params, true, function(data, status) {
				api.hideProgress();
				if (status == 'success') {
					if (data.status == true) {
//				alert(JSON.stringify(data));
						var couinfo = data.data;
						var courseDetail = couinfo.courseinfo;
						if (courseDetail != '' && courseDetail != null) {
							$('#course_info').text(courseDetail);
						}
					} else {
						api.toast({
							msg : '获取课程介绍失败'
						});
					}
				} else {
					api.toast({
						msg : '获取课程介绍失败'
					});
				}
			});
		}
	</script>
</html>
